<template>
  <div>
    <div class="titleItemContainer">
      <span class="flaotLeft inputLabel">状态:</span>
      <el-select v-model="value" placeholder="请选择" class="flaotLeft inputStyle">
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
        </el-option>
      </el-select>
      <span class="flaotLeft inputLabel">创建日期：</span>
      <el-date-picker v-model="value4" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" class="flaotLeft">
      </el-date-picker>
      <span class="flaotLeft inputLabel">截止日期：</span>
      <el-date-picker v-model="value4" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" class="flaotLeft">
      </el-date-picker>
      <span class="flaotLeft inputLabel">简历编号</span>
      <el-input v-model="input" placeholder="请输入内容" class="flaotLeft inputStyle"></el-input>
      <span class="flaotLeft inputLabel">任务编号</span>
      <el-input v-model="input" placeholder="请输入内容" class="flaotLeft inputStyle"></el-input>
      <span class="flaotLeft inputLabel">职位名称：</span>
      <el-input v-model="input" placeholder="请输入内容" class="flaotLeft inputStyle"></el-input>
      <span class="flaotLeft inputLabel">企业名称：</span>
      <el-input v-model="input" placeholder="请输入内容" class="flaotLeft inputStyle"></el-input>
      <el-button type="primary" class="flaotLeft" style="margin-left:10px;">查询</el-button>
      <el-button type="primary" class="flaotLeft" style="margin-left:10px;" @click="publishTask">发布任务</el-button>
    </div>
    <el-table :data="tableData" stripe style="width: 100%" height="500">
      <el-table-column prop="date" label="接收时间" width="180">
      </el-table-column>
      <el-table-column prop="name" label="简历编号" width="180">
      </el-table-column>
      <el-table-column prop="address" label="工作经验">
      </el-table-column>
      <el-table-column prop="address" label="学历">
      </el-table-column>
      <el-table-column prop="address" label="期望薪资">
      </el-table-column>
      <el-table-column prop="address" label="任务编号">
      </el-table-column>
      <el-table-column prop="address" label="职位名称">
      </el-table-column>
      <el-table-column prop="address" label="状态">
      </el-table-column>
      <el-table-column prop="address" label="操作">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
          <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage3" :page-size="100" layout="prev, pager, next, jumper" :total="1000" class="centerInHorizontal">
    </el-pagination>
  </div>
</template>
<style scoped>
.mineTab {
  width: 100%;
  height: 800px;
}

.container {
  height: 100%;
  background-color: #B3C0D1;
}

.summaryContainer {
  height: 900px;
  width: 100%;
}

.titleItemContainer {}

.titleItemContainer::after {
  content: '';
  display: table;
  clear: both;
}

.inputStyle {
  width: 150px;
  margin-left: 10px;
}

.inputLabel {
  margin-top: 10px;
  margin-left: 10px;
}

.flaotLeft {
  float: left;
}

.centerInHorizontal {
  margin: 0 auto;
  width: 200px;
}
</style>
<script>
export default {
  data: function() {
    return {
      tableData: [{
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-08',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-06',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-07',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }]
    }
  },
  methods: {
    publishTask: function() {
      this.$router.push({ path: '/vipcenter/bountycenter/publishingTask' })
    },
    handleClick: function(arg) {
      this.$router.push({ path: '/vipcenter/bountycenter/CheckTask' })
    }
  }
}
</script>
